package com.xmu.prcs.dao;

import java.util.List;

import com.xmu.prcs.entity.Plant;

/**
 * 
 * @author frequent
 * @version 1.0,2010-3-20
 *
 */
public interface PlantDao extends GenericDao<Plant>{

	public final String ID_PLANT = "idPlant";
	public final String PLANT_NAME = "plantName";
	public final String SCIENTIFIC_NAME = "scientificName";
	public final String ALIAS = "alias";
	public final String CHARACTERISTIC = "characteristic";
	public final String ORIGIN_PLACE = "originPlace";
	public final String HABITS = "habits";
	public final String GROW_POINT = "growPoint";
	public final String APPLICAITION = "application";
	public final String CULTURE = "culture";
	public final String UPLOAD_TIME = "uploadTime";
	public final String KIND_KE = "kindKe";
	public final String KIND_SHU = "kindShu";
	public final String SUBJECT_NAME = "subjectName";
	
	/**
	 * 通过属性值查找
	 * @param propety
	 * @param param
	 * @return
	 */
	public List<Plant> findByPropety(String propety, Object param);
	
	/**
	 * 得到结果数
	 * @return
	 */
	public int countPlant( int idSubject, int idKindShu, String plantName);
	
	/**
	 * 通过分页得到植物
	 * @param begin
	 * @param size
	 * @return
	 */
	public List<Plant> find4Page(int begin, int size, int idSubject, int idKindShu, String plantName);
}
